package com.freshmarket.freshmarket.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Squirrel
 * @since 2020-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("freshmarket_coupon")
public class Coupon implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    private String couponName;

    private Integer couponNum;

    private String couponPastdue;

    /**
     * 直接发放 结算赠送 积分兑换
     */
    private String couponStatus;

    /**
     * 针对于结算发放的劵 该劵的发放门槛
     */
    private Double couponThreshold;

    /**
     * 针对积分换购的劵 换购的价格
     */
    private Integer couponScorePrice;

    /**
     * 直扣 折扣
     */
    private String couponDiscountsStatus;

    private Double couponDiscount;

    /**
     * 0 为全局生效 具体id为指定商品
     */
    private Integer productId;


}
